resource "huaweicloud_cce_node_pool" "node_pool" {
  cluster_id               = var.cluster_id
  name                     = var.pool_name
  os                       = var.os
  initial_node_count       = var.initial_node_count
  flavor_id                = var.flavor_id
  availability_zone        = var.availability_zone
  key_pair                 = var.keypair
  scall_enable             = var.scall_enable
  min_node_count           = var.min_node_count
  max_node_count           = var.max_node_count
  scale_down_cooldown_time = var.scale_down_cooldown_time
  priority                 = var.priority
  type                     = "vm"

  root_volume {
    size       = var.root_volume_size
    volumetype = var.root_volume_type
  }
  data_volumes {
    size       = var.data_volume_size
    volumetype = var.data_volume_type
  }
}